<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪类选择器</title>
    <style>
        div:hover {
            color: red;
            cursor: pointer;
        }

        a:link {
            color: red;
        }

        a:visited {
            color: green;
        }

        input:focus {
            background-color: aqua;
        }
    </style>
</head>

<body>
    <!-- 
        伪类选择器
        :hover鼠标悬停
     -->
    <div>这是文字这是文字这是文字这是文字</div>
    <a href="">a标签</a>
    <input type="text" name="" value="">
</body>

</html>